package com.hubt.model;

import java.io.Serializable;

public class PtRoleRes implements Serializable {
    private String roleUuid;

    private String resUuid;

    private static final long serialVersionUID = 1L;

    public String getRoleUuid() {
        return roleUuid;
    }

    public void setRoleUuid(String roleUuid) {
        this.roleUuid = roleUuid == null ? null : roleUuid.trim();
    }

    public String getResUuid() {
        return resUuid;
    }

    public void setResUuid(String resUuid) {
        this.resUuid = resUuid == null ? null : resUuid.trim();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        PtRoleRes other = (PtRoleRes) that;
        return (this.getRoleUuid() == null ? other.getRoleUuid() == null : this.getRoleUuid().equals(other.getRoleUuid()))
            && (this.getResUuid() == null ? other.getResUuid() == null : this.getResUuid().equals(other.getResUuid()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getRoleUuid() == null) ? 0 : getRoleUuid().hashCode());
        result = prime * result + ((getResUuid() == null) ? 0 : getResUuid().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", roleUuid=").append(roleUuid);
        sb.append(", resUuid=").append(resUuid);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}